#!/usr/bin/env python
# encoding: utf-8
'''
@author: zhaowenpeng
@contact: winston@peipeiyun.com
@software: garner
@file: page.py
@time: 2020/7/20 10:39 上午
@desc:
'''

import json
from tornado.web import RequestHandler
from core.result import Result

class NotFoundHandler(RequestHandler):
    def get(self, *args, **kwargs):
        self.set_status(404)
        self.write(json.dumps(Result(code=404, msg="NOT FOUND!").json()))

    def post(self, *args, **kwargs):
        self.set_status(404)
        self.write(json.dumps(Result(code=404, msg="NOT FOUND!").json()))
